package com.party.mapper;

import com.party.model.ExamTest;
import com.party.model.ExamTestExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ExamTestMapper {
    int countByExample(ExamTestExample example);

    int deleteByExample(ExamTestExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ExamTest record);

    int insertSelective(ExamTest record);

    List<ExamTest> selectByExample(ExamTestExample example);

    /**
     * 修改过方法
     * @param id
     * @return
     */
    ExamTest selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ExamTest record, @Param("example") ExamTestExample example);

    int updateByExample(@Param("record") ExamTest record, @Param("example") ExamTestExample example);

    int updateByPrimaryKeySelective(ExamTest record);

    int updateByPrimaryKey(ExamTest record);


    int  insertAndGetId(ExamTest record);

    /**
     * 自建题目列表
     * @param examTest
     * @return
     */
    List<ExamTest> getListPage(ExamTest examTest);
}